package cn.wolfcode.trip.api.controller;

import cn.wolfcode.trip.base.domain.NewsComment;
import cn.wolfcode.trip.base.query.NewsCommentQueryObject;
import cn.wolfcode.trip.base.service.INewsCommentService;
import cn.wolfcode.trip.base.util.JsonResult;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/newsComments")
public class NewsCommentController {
    @Autowired
    private INewsCommentService newsCommentService;
    //获取用户评论日报的评论
    @GetMapping
    public PageInfo selectByUserId(NewsCommentQueryObject qo) {
       return newsCommentService.selectByUserId(qo);
    }
}
